package one.stand.service.impl;

import one.stand.mapper.VideoSwtichMapper;
import one.stand.model.ResultModel;
import one.stand.request.SwitchVideoRequest;
import one.stand.service.BaseService;
import one.stand.service.VideoSwtichService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author luoyang
 * @date 2020/6/15 10:29
 */
@Service
@Transactional
public class VideoSwtichServiceImpl extends BaseService implements VideoSwtichService {

    @Override
    public ResultModel switchVideo(SwitchVideoRequest request) {
        return ResultModel.success(videoSwtichMapper.selectByCompanyId(request.getCompanyId()));
    }
}
